<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <style>
            html{
                height: 100%;
            }
            body{
                height: 100%;
                margin: 0px;
            }
            .container{
                width: 100%;
                height: 100%;
                background-color:darkgrey;
                overflow: auto;
                display:flex;
                flex-direction: column;
                align-items: center;/*水平居中*/
            }
            .card{
                width: 95%;
                height: 200px;
                background-color: rgb(74, 126, 123);
                margin-top: 20px;
                flex: 0 0 auto;
            }

        </style>
    </head>
    <body>
        <div class="container">
            <div class="card"></div>
            <div class="card"></div>
            <div class="card"></div>
            <div class="card"></div>
            <div class="card"></div>
        </div>
    </body>

</html>
